// 转档的一二三步骤验证操作

import {hrAjax as proFetch} from 'src/hrpub/common/utils/utils';


export default (data, step) => {

    if(step === 1) {

        return proFetch({
            url: '/nccloud/hrhi/register/RegisterIntoDocCheck1Action.do',
            body: {
                pk_org: data.pk_org,
                param_str: data.param_str.join(',')
            }
        });
    }
    else if(step === 2) {
        
        return proFetch({
            url: '/nccloud/hrhi/register/RegisterIntoDocCheck2Action.do',
            body: {
                pk_org: data.pk_org,
                param_str: data.param_str
            }
        });
    }
    else if(step === 3) {
        return proFetch({
            url: '/nccloud/hrhi/register/RegisterIntoDocAction.do',
            body: {
                pk_org: data.pk_org,
                param_str: data.param_str
            }
        });
    }
    

}
